#include<stdio.h>
//数组来求
int main(){
    int num[10] = {0};
    for (int i = 0 ; i<10;i++){
        scanf("%d",&num[i]);
    }
    int max = num[0];
    for (int i = 0 ; i<10 ; i++){
        
        if (max <= num[i]){
            max = num[i];
        }
    }
    printf("%d\n",max);
    
}